package com.alibaba.dubbo.demo.consumer;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.alibaba.dubbo.demo.SelectService;

public class Customer {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "dubbo-demo-consumer.xml" });
		context.start();
		SelectService s = (SelectService) context.getBean("selectService");
		System.out.println(s.sel(11).getContent());
		try {
			System.in.read();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
